<head>
  <meta charset="UTF-8">
  <!-- Site Generator -->
  {{ hugo.Generator }}
  <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">

  <link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png" />
  {{ if .Params.tags }}
  <meta name="keywords" content="{{ delimit .Params.tags ", " }}">
  {{ else if .Site.Params.Keywords }}
  <meta name="keywords" content="{{ .Site.Params.Keywords }}">
  {{ end }}
  
  {{ if .Description }}
  <meta name="description" content="{{ .Description }}">
  {{ else if .Site.Params.Description}}
  <meta name="description" content="{{ .Site.Params.Description }}">
  {{ end }}

  <title>
     {{ if .IsHome }}
        首页 - {{ .Site.Title }}
     {{ else if .Params.heading }}
         {{ .Params.heading }}
     {{ else }}
         {{ .Title }} | {{ .Site.Title }}
     {{ end }}
  </title>
  <meta name="title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end}}">
  <link rel="alternate" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ site.Title }}">
  <link rel="feed" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ site.Title }}">

  {{ partial "seo_schema" . }}

  {{ partial "css" . }}

  <!-- Google adsense -->
<script data-ad-client="ca-pub-4662105987705607" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4662105987705607"
     crossorigin="anonymous"></script>
<!-- Google adsense end -->

  <script>
  var _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?d1336a401125408e2b0cc8a38bcbf17a";
    var s = document.getElementsByTagName("script")[0]; 
    s.parentNode.insertBefore(hm, s);
  })();
  </script>
  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=UA-174571289-1"></script>
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'UA-174571289-1');
  </script>
</head>
